package com.dq.repository;

import com.dq.domain.annex.AnnexTypeEnum;
import com.dq.domain.annex.SysAnnex;
import com.dq.domain.sys.user.user.base.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @创建人 gewenzhen
 * @创建时间 2019/8/15
 * @描述
 */
public interface SysAnnexRepository extends JpaRepository<SysAnnex, Long> {
    SysAnnex getBySysUserAndAnnexTypeEnumAndDeletedIsFalse(SysUser sysUser, AnnexTypeEnum annexTypeEnum);

    List<SysAnnex> findBySysUserAndAnnexTypeEnumAndDeletedIsFalse(SysUser sysUser, AnnexTypeEnum annexTypeEnum);

    SysAnnex findByName(String name);

}
